package com.simou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.simou.dto.SetmealDto;
import com.simou.entity.Setmeal;
import com.simou.vo.SetmealVo;
import org.springframework.beans.factory.annotation.Autowired;

public interface SetmealService extends IService<Setmeal> {
    // 新增套餐到setmeal表，同时新增套餐的菜品到setmeal_dish表中
    public void saveWithSetmealDish(SetmealDto setmealDto);

    //根据id查询setmeal+setmealDish+category表
    public SetmealVo getByIdWithSetmealDishAndCategory(Long id);

    //根据id修改setmeal+setmealDish+category表
    public void updateWithSetmealDish(SetmealDto setmealDto);

    //根据id删除setmeal+setmealDish表
    public void deleteWithSetmealDish(Long id);
}
